package corewarsxxi.logic;

/**
 * Interface IWarriorDeathListener used to implement a listener on Core for
 * monitoring the death of Warriors whistle execution.
 *
 * @version 1.0
 * @see     corewarsxxi.logic.Core
 * @see     corewarsxxi.logic.Warrior
 * @author  Luís Fonseca, ei10139 @ FEUP
 */
public interface IWarriorDeathListener
{
    /**
     * Invoking the handle function on the class that implements IWarriorDeathListener.
     * @param w Warrior that has just died
     */
    public void handle(Warrior w);
}
